//
//  UIAlertView+Additions.h
//  ExtensionAlertView
//
//  Created by 新闻 on 15-2-5.
//  Copyright (c) 2015年 Adways. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^UIAlertViewCallBackBlock)(NSInteger buttonIndex);

@interface UIAlertView (Additions)

@property (nonatomic, copy) UIAlertViewCallBackBlock alertViewCallBackBlock;

+ (void)alertWithCallBackBlock:(UIAlertViewCallBackBlock)alertViewCallBackBlock title:(NSString *)title message:(NSString *)message  cancelButtonName:(NSString *)cancelButtonName otherButtonTitles:(NSString *)otherButtonTitles, ...;

/**
 *  cancel
 *
 *  @param title
 *  @param message
 *  @param cancelBtnName
 *  @param callBackBlock
 */
+ (void)alertWithTitle:(NSString *)title message:(NSString *)message cancelBtnName:(NSString *)cancelBtnName callBackBlock:(UIAlertViewCallBackBlock)alertViewCallBackBlock;

/**
 *  cancel and other
 *
 *  @param title
 *  @param message
 *  @param cancelBtnName
 *  @param otherBtnName
 *  @param callBackBlock 
 */

+ (void)alertWithTitle:(NSString *)title message:(NSString *)message cancelBtnName:(NSString *)cancelBtnName otherBtnName:(NSString *)otherBtnName callBackBlock:(UIAlertViewCallBackBlock)alertViewCallBackBlock;


@end
